﻿using EntityModel.PageListInfor;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EntityModel.CommodityMent
{
    /// <summary>
    /// 商品咨询表
    /// </summary>
    [Table("goods_consult")]
    public class AikeApplet_goods_consult: Pagination
    {
        /// <summary>
        /// 商品咨询编号
        /// </summary>
        [Key]
        public int id { get; set; }

        /// <summary>
        /// 商品id
        /// </summary>
        public int goodsId { get; set; }

        /// <summary>
        /// 咨询人id
        /// </summary>
        public int userid { get; set; }

        /// <summary>
        /// 咨询类型
        /// </summary>
        public int consultType { get; set; }

        /// <summary>
        /// 咨询内容
        /// </summary>
        [MaxLength(2000)]
        public string consultContent { get; set; }

        /// <summary>
        /// 商家回复
        /// </summary>
        [MaxLength(2000)]
        public string reply { get; set; }

        /// <summary>
        /// 有效状态	
        /// 1：有效 -1:删除
        /// </summary>
        public int dataFlag { get; set; } = 1;

        /// <summary>
        /// 是否显示	
        /// 1：显示 0：不显示
        /// </summary>
        public int isShow { get; set; } = 1;
        /// <summary>
        /// 咨询时间
        /// </summary>
        public DateTime createTime { get; set; }
    }
}
